<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%--    <script src="js/getRequest.js"></script>--%>
    <title>Title</title>
    <script src="../js/jquery.js"></script>
<script>
    function send() {
        // 发送ajax
        $.ajax({
           type: "get",
           url: "${pageContext.request.contextPath}/servletDemo01",
            data: "username=tom",
            success: function (data){
                alert(data);// 响应体数据
            }
        });
    }

</script>
</head>
<body>
<input type="button" value="发送Ajax" onclick="send()">
</body>
</html>
